package com.tanhua.dubbo.api.mongo;

import com.tanhua.domain.mongo.Report;
import org.bson.types.ObjectId;

import java.util.List;

public interface ReportApi {
    Report findOne(ObjectId id, Long userId);

    Report save(Report report);

    List<Report> findByUser(Long userId);

    Report findById(ObjectId reportId);

    List<Report> findSimilar(ObjectId reportId);

    void removeOldReport(Long userId);

    String findByQnId(String Qnid,Long userId);
}
